import instance from "@/utils/request/index" // 引入拦截器
/**
 * demo
 * @param {*} data
 * @returns
 */
interface Login {
  current: number
  model: any
}
export function professorList(
  data: Login = {
    current: 1,
    model: "",
  }
) {
  return instance.request({
    url: "/neo-system/neo/neoProfessor/queryPage",
    method: "post",
    data,
  })
}

export function country(params = {}) {
  return instance.request({
    url: "/neo-system/neo/neoArea/queryCountry",
    method: "post",
    params,
  })
}

export function createdBy(params = {}) {
  return instance.request({
    url: "/neo-activity/activityManage/queryCreateUsersLookup",
    method: "post",
    params,
  })
}

export function interviewer(params = {}) {
  return instance.request({
    url: "/neo-system/neo/neoInterviewer/queryAdmissionsForSearchLookup",
    method: "post",
    params,
  })
}

export function uploadImage(data = {}) {
  return instance.request({
    url: "/neo-resource/resource/upload",
    method: "post",
    data,
  })
}

export function uploadFiles(data = {}) {
  return instance.request({
    url: "/neo-resource/resource/upload",
    method: "post",
    data,
  })
}
